home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000033_icon-group-sender _Fri Feb 2 02:56:56 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 2 Feb 1996 12:42:23 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 2 Feb 1996 02:56:56 GMT
  4. From: mustard@interlog.com
  5. Message-Id: <4eruho$aj0@steel.interlog.com>
  6. Organization: InterLog Internet Services
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <slrn4gnrln.dpt.rahardj@phad.cc.umanitoba.ca>
  9. Reply-To: mustard@interlog.com
  10. Subject: Re: processing utmp and/or wtmp with icon
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: O
  13.  
  14. In <slrn4gnrln.dpt.rahardj@phad.cc.umanitoba.ca>, rahardj@cc.umanitoba.ca (Budi Rahardjo) writes:
  15. >We are planning to write a program which converts utmp/wtmp file
  16. >into somekind of database (delimitted, flat file would be good enough).
  17.  
  18. What's wrong with "fwtmp" that comes with your wtmp producer? (UNIX)
  19. Or "who -a"? I certainly would have one of these in a pipeline to a simpler
  20. program (awk (herasy ;-) to do the job.  I do infact parse the output of
  21. fwtmp with an awk script to detect login/out activity.
  22.  
  23. >The database is used to produces statistics such as usage, number of logins, 
  24. >how many hours one has logged in to a system this month, etc.
  25. >We want to produce this stats in real time too.
  26. >
  27. >Actually, I have written this in perl but wanted to make it an executable.
  28.  
  29. What's an "executable"? 
  30.  
  31. >Icon seems to be a natural approach ( don't want to go to C or C++).
  32.  
  33. Icon works but best on a text, not binary, (IMHO) file.  But either perl
  34. or icon implies shipping extra stuff with your code that _may_ make
  35. support or portability more difficult.
  36.  
  37. Note that wtmp/utmp files are different on different *ix versions.
  38.  
  39. >Before I start rolling the design, has anybody done this? 
  40. >Any tips.
  41.  
  42.